package com.tj.bo.account.server.dao;

import com.fqgj.common.base.BaseMapper;
import com.tj.bo.account.server.entity.OrderDepositEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* User: account
* Date: 2020-06-11
* Time: 10:48:23.883
*/

public interface OrderDepositDao  extends BaseMapper<OrderDepositEntity> {

    OrderDepositEntity selectLatestDepositOrder(String userCode);

    List<OrderDepositEntity> selectDepositOrdersByUserCode(String userCode);

    OrderDepositEntity selectDepositOrder(String depositOrderNo);

    List<OrderDepositEntity> selectsDepositOrderListByStatusAndTime(Integer orderStatus, Date endTime);

    int updateDepositStatus(String orderNo, Integer status);

    BigDecimal selectTotalDepositAmount(String userCode);
}